package com.ljt.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ljt.utils.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_product_applyFor")
@ApiModel(value = "product_applyFor对象", description = "申请订单")
public class ApplyFor implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField(value = "applyId")
    @Excel(name = "申请单号")
    private String applyId;

    @ApiModelProperty(value = "申请人id")
    @Excel(name = "申请人")
    private int uid;

    @ApiModelProperty(value = "紧急程度")
    @Excel(name = "紧急程度")
    private String priority;

    @ApiModelProperty(value = "需求方id")
    @Excel(name = "需求方编号")
    private int cid;

    @TableField(value = "createTime")
    @ApiModelProperty(value = "申请时间")
    @Excel(name = "申请时间")
    private Date createTime;

    @ApiModelProperty(value = "申请状态")
    @Excel(name = "申请状态")
    private String status;

    @ApiModelProperty(value = "审批人")
    @Excel(name = "审批人")
    private String approver;

    @TableField(value = "approvalTime")
    @ApiModelProperty(value = "审批时间")
    @Excel(name = "审批时间")
    private Date approvalTime;

    @TableField(value = "approvalDesc")
    @ApiModelProperty(value = "审批描述")
    @Excel(name = "审批描述")
    private String approvalDesc;

    @TableField(value = "applyDesc")
    @ApiModelProperty(value = "订单描述")
    @Excel(name = "订单描述")
    private String applyDesc;

    @TableField(value = "purchaseId")
    @ApiModelProperty(value = "申请进货单号")
    @Excel(name = "申请进货单号")
    private String purchaseId;

    @TableField(exist = false)
    @ApiModelProperty(value = "明细列表")
    @Excel(name = "明细列表")
    private ArrayList<Product> productList;
}
